<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<?php $tag_questionview_class = new \Common\Taglib\questionview();$q = $tag_questionview_class->run(array('listname'=>'q','id'=>$_GET['id'],'cache'=>'0',)); ?> 
<title><?php echo SEO('question-view','title',array('QUESTION_TITLE'=>$q['title']));?></title>
<meta name="keywords" content="<?php echo SEO('question-view','keywords',array('QUESTION_TITLE'=>$q['title']));?>">
<meta name="description" content="<?php echo SEO('question-view','description',array('QUESTION_TITLE'=>$q['title'],'DESCRIBE'=>$q['describe']));?>">
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/question.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/common.css" rel="stylesheet" type="text/css">
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.min.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.dialog.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/common.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.disappear.tooltip.js"></script>
<!--[if lt IE 9]>
  <script type="text/javascript" src="/<?php echo C('UU_TPL_DIR');?>/public/js/PIE.js"></script>
  <script type="text/javascript">
    (function($){
        $.pie = function(name, v){
            // 如果没有加载 PIE 则直接终止
            if (! PIE) return false;
            // 是否 jQuery 对象或者选择器名称
            var obj = typeof name == 'object' ? name : $(name);
            // 指定运行插件的 IE 浏览器版本
            var version = 9;
            // 未指定则默认使用 ie10 以下全兼容模式
            if (typeof v != 'number' && v < 9) {
                version = v;
            }
            // 可对指定的多个 jQuery 对象进行样式兼容
            if ($.browser.msie && obj.size() > 0) {
                if ($.browser.version*1 <= version*1) {
                    obj.each(function(){
                        PIE.attach(this);
                    });
                }
            }
        }
    })(jQuery);
    if ($.browser.msie) {
      $.pie('.pie_about');
    };
  </script>
<![endif]-->
<script type="text/javascript">
var ajaxURL="<?php echo RU('ajax/view');?>";
</script>
</head>
<style>
    .sotit {
        width: 120px;
        float: left;
        font-size: 20px;
        padding-top: 35px;
        text-align: right;
        padding-right: 25px;
    }
    .search form{
        width: 430px;
        float: left;
        height: 42px;
        border: 3px #6DBD60 solid;
        background-color: #FFF;
        margin-top: 25px;
        position: relative;
    }
    .so-input{
        border: 0px;
        background-color: #FFFFFF;
        height: 40px;
        width: 380px;
        padding-left: 15px;
    }


    .search .sobtn {
        position: absolute;
        right: -3px;
        top: -3px;
        width: 80px;
        background-color: #6DBD60;
        border: 0px;
        color: #FFFFFF;
        height: 48px;
        font-size: 16px;
        cursor: pointer;
    }
    </style>
<body>

<div class="pagetop">
		<div class="main">
          <div class="welcome link_orange" id="J_welcome">欢迎登录 <?php echo C('UU_SITE_NAME');?>！请 <span><a href="Javascript: void(0)" class="J_user_login">登录</a></span>或<span><a href="Javascript: void(0)" class="J_user_reg">注册</a></span></div>
          <div class="menu link_gray6"><a href="<?php echo C('UU_SITE_DOMAIN');?>/" class="home">网站首页</a>
		  
		  <!-- <a href="#" class="ranking">排行榜</a> <a href="#" class="category">问题分类</a> <a href="#" class="mall">积分商城</a> -->
		   
		   </div>
        	<div class="clear"></div>
        </div>
</div>

<div class="header">
  <div class="logo" style="width: 220px"><a href="/"><img src="http://www.zgxmall.com/data/upload/mall/common/05999185122820637.png"  alt="<?php echo C('UU_SITE_NAME');?>" border="0"/></a></div>
    <!--<div class="sotit">商品</div>-->
    <!--<div class="search" >-->
        <!--<form action="<?php echo RU('article/lists');?>" method="get" id="J_so_from">-->
            <!--<div class="sobox">-->
                <!--<div class="inputbox">-->
                    <!--<input type="text" class="so-input"  name="key"  value="<?php echo ($_REQUEST['key']); ?>" placeholder="请输入关键词">-->
                    <!--<input name="" type="submit" value="搜索" class="sobtn">-->
                <!--</div>-->
            <!--</div>-->
        <!--</form>-->
    <!--</div>-->
    <div class="so"></div>
  <div class="clear"></div>

</div>

<div class="pagenav">
  <div class="navmain link_white">
  <?php $tag_nav_class = new \Common\Taglib\nav();$nav = $tag_nav_class->run(array('listname'=>'nav','cache'=>'0',)); ?>
			<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><div class="li  <?php if($page_as == $nav['pagealias']): ?>select<?php endif; ?>"><a href="<?php echo ($nav["url"]); ?>" target="<?php echo ($nav["target"]); ?>"><?php echo ($nav["title"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="clear"></div>
  </div>
</div>


<div class="qshow">
  <div class="cmain">
    <div class="box1">
	
      <div class="title">
	  <h1><?php echo ($q["title"]); ?></h1>
	  
	  <div class="follow">
	  <?php if(($_SESSION['uu']['uid']) == ""): ?><!--未登录 -->
	  
	   <div class="fbtns J_user_login">已关注</div>
	   <div class="followtxt"><strong class="J_follow_count"><?php echo ($q["follow_count"]); ?></strong>关注</div>
	   <div class="clear"></div>
	   <div class="fbtns w J_user_login">收藏</div>
	   <div class="followtxt"><strong class="J_favorites_count"><?php echo ($q["favorites_count"]); ?></strong>收藏</div>
		<div class="clear"></div>
		
		
	 	<?php else: ?><!--已登录 -->
		
		<?php if(($q["is_follow"]) == "1"): ?><div class="fbtns J_follow" qid="<?php echo ($q["id"]); ?>">已关注</div>
		<?php else: ?>
		<div class="fbtns J_follow" qid="<?php echo ($q["id"]); ?>">关注</div><?php endif; ?>
		<div class="followtxt"><strong class="J_follow_count"><?php echo ($q["follow_count"]); ?></strong>关注</div>
		<div class="clear"></div>
		<?php if(($q["is_favorites"]) == "1"): ?><div class="fbtns w J_favorites" qid="<?php echo ($q["id"]); ?>">已收藏</div>
		<?php else: ?>
		<div class="fbtns w J_favorites" qid="<?php echo ($q["id"]); ?>">收藏</div><?php endif; ?>
		<div class="followtxt"><strong class="J_favorites_count"><?php echo ($q["favorites_count"]); ?></strong>收藏</div>
		<div class="clear"></div><?php endif; ?>
	  	
	  </div>
	  <div class="userinfo link_gray3">
	  	
		<a href="<?php echo ($q["userurl"]); ?>"><?php echo ($q["username"]); ?></a> <span>|</span><?php echo ($q["addtime_str"]); ?><span>|</span> 浏览<u><?php echo ($q["click"]); ?></u>次
		
		<?php if(!empty($q["tag"])): ?><span>|</span><strong class="tag"><?php endif; ?>
		<?php if(is_array($q["tag"])): $i = 0; $__LIST__ = $q["tag"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo["tagurl"]); ?>" ><?php echo ($vo["tag"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
		<?php if(!empty($q["tag"])): ?></strong><?php endif; ?>
	 
		</div>
		
	  </div>  
   	  
		<?php if((($q["reward"] > 0) OR ($q["sys_reply_gold"] > 0)) AND $q['issolve']=='0' ): ?><div class="qtip">
		你的回答被采纳后将获得：
		<?php if($q["sys_reply_gold"] > 0 ): ?>系统奖励 <span class="gold">+<?php echo ($q["sys_reply_gold"]); ?></span><?php echo C('UU_GOLD_BYNAME'); if(!empty($q["sys_reply_exp"])): ?>（经验值+<?php echo ($q["sys_reply_exp"]); ?>）<?php endif; endif; ?>
		<?php if(($q["reward"] > 0) AND ($q["sys_reply_gold"] > 0) ): ?><strong> + </strong><?php endif; ?>
		<?php if($q["reward"] > 0 ): ?>提问者悬赏<span class="gold">+<?php echo ($q["reward"]); ?></span><?php echo C('UU_GOLD_BYNAME'); endif; ?>
		</div><?php endif; ?>
		
		
        <div class="txt"><?php echo ($q["describe"]); ?></div>
		<!-- 图片-->
		<?php if(!empty($q["img"])): ?><div class="qimgbox">
			<?php if(is_array($q["img"])): $i = 0; $__LIST__ = $q["img"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class="imgli"><a href="<?php echo ($v["imgurl"]); ?>"><img src="<?php echo ($v["thumb_imgurl"]); ?>"   border="0"></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
			<div class="clear"></div>
		</div><?php endif; ?>
	  <!-- 显示补充提问-->
		<?php if(is_array($q["supp"])): $i = 0; $__LIST__ = $q["supp"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$supp): $mod = ($i % 2 );++$i;?><div class="askedlist">
							 <div class="tn"> 补充：	</div>
							 <div class="infobox">
								 <div class="info"><?php echo ($supp["content"]); ?></div>
								 <div class="clear"></div>
								 <div class="arrows"></div>
							 </div>
							 <div class="clear"></div>
					   </div><?php endforeach; endif; else: echo "" ;endif; ?>
		<!-- 自己发布的显示补充提问和追加悬赏-->
		 <?php if(($q["uid"] == $user['uid']) AND ($q['issolve']=='0')): ?><!--假如是自己发布的 -->
				    <div class="btns">
			   		 <div class="supp J_supp_show">补充提问</div>
					 <div class="supp gold J_supp_gold_show">追加悬赏</div>
					 <div class="clear"></div>
	    			</div>
		
		<!--显示补充问题提交框 -->
		<div class="suppinputbox">
						   <div class="arrow"></div>
			     			 <textarea name="content" cols="" qid="<?php echo ($q["id"]); ?>" rows="" class="input J_supp_input"  placeholder="点此补充您的问题，温馨提示：请勿包含有QQ号、邮箱地址、电话等个人敏感信息！" ></textarea>
							<div class="askedbtn">
							<input type="button" class="btn_green btn_inline btn_border J_supp_btn" value="补充提问">
							</div>
	    </div>
		<!--显示追加悬赏 -->
		<div class="suppgold">
			<div class="arrow"></div>
		    <div class="goldbox">
			  <div class="sti">追加悬赏，能吸引更多的回答者，获得更优质的答案。</div>
			  <div class="sel">
			      <label <?php if($user["gold"] < 5 ): ?>class="disabled"<?php endif; ?>><input  checked  name="suppgold" type="radio" value="5"  <?php if($user["gold"] < 5 ): ?>disabled="disabled"<?php endif; ?>>5<?php echo C('UU_GOLD_BYNAME');?></label>
				  <label <?php if($user["gold"] < 10 ): ?>class="disabled"<?php endif; ?>><input type="radio" name="suppgold" value="10" <?php if($user["gold"] < 10 ): ?>disabled="disabled"<?php endif; ?>>10<?php echo C('UU_GOLD_BYNAME');?></label>
				  <label <?php if($user["gold"] < 20 ): ?>class="disabled"<?php endif; ?>><input type="radio" name="suppgold" value="20" <?php if($user["gold"] < 20 ): ?>disabled="disabled"<?php endif; ?>>20<?php echo C('UU_GOLD_BYNAME');?></label>
				  <label <?php if($user["gold"] < 50 ): ?>class="disabled"<?php endif; ?>><input type="radio" name="suppgold" value="50" <?php if($user["gold"] < 50 ): ?>disabled="disabled"<?php endif; ?>>50<?php echo C('UU_GOLD_BYNAME');?></label>
				  <label <?php if($user["gold"] < 100 ): ?>class="disabled"<?php endif; ?>><input type="radio" name="suppgold" value="100" <?php if($user["gold"] < 100 ): ?>disabled="disabled"<?php endif; ?>>100<?php echo C('UU_GOLD_BYNAME');?></label>
			  </div>
			  
				  <div class="suppbtn">
				  <input type="button" class="btn_green btn_inline btn_border" id="J_supp_gold" value="追加悬赏">
				  </div>
				  <div class="btnsrighttxt">您当前有<span class="sgold"><?php echo ($user["gold"]); ?></span><?php echo C('UU_GOLD_BYNAME');?></div>
				  <div class="clear"></div>
		    </div>
		</div>
		<!--显示追加悬赏 end--><?php endif; ?>
		<!-- 不是自己发布的，并且没有回答过-->
		<?php if(($q["uid"] != $user["uid"] ) AND ($q["is_reply"] != '1' ) AND ($q['issolve']=='0')): ?><div class="reply">
		
		  <div class="re1">
				<div class="userimg">
				<?php if($user["avatar"] == '' ): ?><img src="/<?php echo C('UU_IMG_AVATAR_DIR');?>avatar.jpg" />
				<?php else: ?>
				<img src="<?php echo ($user["avatar"]); ?>" /><?php endif; ?>
				</div>
				<div class="rtit">我来回答</div>
		  </div>
		  <form action="<?php echo RU('question/replysave');?>" method="post" name="replysave">
		  <input name="qid" type="hidden" value="<?php echo ($q["id"]); ?>">
		  <div class="re2">
		  		<textarea name="content" cols="" rows="" class="reptxt <?php if($user["uid"] == ''): ?>J_user_login<?php endif; ?>" id="J_reply_input" placeholder="这里输入你的回答内容"></textarea>
		  </div>
		   <div class="clear"></div>

		   <div class="replybtns">
		     <div class="topti">还可输入<span id="repcount">1000</span>字</div>
		     <div class="rbtn">
			 <input type="button" class="btn_green btn_inline btn_border" id="J_save_reply" value="提交回答">
			 </div>
		   </div>
	      </form>
		   
        </div><?php endif; ?>
		
		
    </div>
	
	
	
	<!--已经回答过(登录中) -->
	<?php if($q["is_reply"] == '1'): ?><div class="box2 bopadding">
	
		<h3 class="title">我的回答</h3>
		
		
	<!-- -->	
	  <div class="reply noborder">
	  
	    <?php if($q.my_reply.optimal == 1): ?><div class="optimal"></div><?php endif; ?>		  
	    <div class="pic">
				  <img src="<?php echo ($user["avatar"]); ?>" />
		  </div>
				  <div class="uname">
				  	<div class="t1 link_blue">
					<span class="userLV">LV<?php echo ($user["exp_lv"]); ?></span>
					<a href="<?php echo ($user["user_url"]); ?>"><?php echo ($user["username"]); ?></a>
					&nbsp;&nbsp;采纳率：<span class="acc_rate"><?php echo ($user["acc_rate"]); ?>%</span>
					</div>
				  </div>
				   <div class="clear"></div>
				   <div class="time"><?php echo ($q["my_reply"]["addtime_str"]); ?></div>
				   
		           
		           <div class="rtxt"><?php echo ($q["my_reply"]["content"]); ?></div>
				   
				   
				     <!--显示追问追答 -->
					<?php if(is_array($q["my_reply"]["asked"])): $i = 0; $__LIST__ = $q["my_reply"]["asked"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$askedli): $mod = ($i % 2 );++$i;?><div class="askedlist type<?php echo ($askedli["type"]); ?>">
							 <div class="tn">
							 <?php if($askedli["type"] == '1'): ?>追答：
							<?php else: ?>
							 追问：<?php endif; ?>
							 </div>
							 <div class="infobox">
								 <div class="info"><?php echo ($askedli["content"]); ?></div>
								 <div class="clear"></div>
								 <div class="arrows"></div>
							 </div>
							 <div class="clear"></div>
						
					   </div><?php endforeach; endif; else: echo "" ;endif; ?>
 
				   
				   <!--下方按钮 -->
				    <?php if($q["issolve"] == '0'): ?><div class="btns">
					 <div class="asked J_show_asked">追答</div>
					 <div class="clear"></div>
				   </div>

				<div class="inputbox">
						   <div class="arrow my"></div>
			     			 <textarea name="content" cols=""   type="1" rid="<?php echo ($q["my_reply"]["id"]); ?>" rows="" class="input J_asked_input"  placeholder="这里填写内容" ></textarea>
							<div class="askedbtn">
							 <input type="button" class="btn_green btn_inline btn_border J_reply_asked_btn"  value="提交追答">
							</div>
	    </div><?php endif; ?>
		 
		 
		 
		 
	  </div>
		
		
		<!-- -->
		
		 

	</div><?php endif; ?>
	
	
	
	
	
	<?php $tag_answer_class = new \Common\Taglib\answer();$li = $tag_answer_class->run(array('listname'=>'li','qid'=>$_GET['id'],'cache'=>'0',)); ?>
	<?php if(!empty($li["list"])): ?><div class="box2">
	
		<h3 class="title"><?php echo ($li["count"]); ?>条回答</h3>
		
		
	<!-- -->
	<?php if(is_array($li["list"])): $i = 0; $__LIST__ = $li["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rli): $mod = ($i % 2 );++$i;?><div class="reply">
	  				 <?php if($rli["optimal"] == 1): ?><div class="optimal"></div><?php endif; ?>		
				<div class="pic">
				  <img src="<?php echo ($rli["user"]["avatar"]); ?>" />
				  </div>
				  <div class="uname">
				  	<div class="t1 link_blue">
					<span class="userLV">LV<?php echo ($rli["user"]["exp_lv"]); ?></span>
					<a href="<?php echo ($rli["user"]["user_url"]); ?>"><?php echo ($rli["user"]["username"]); ?></a>
					&nbsp;&nbsp;采纳率：<span class="acc_rate"><?php echo ($rli["user"]["acc_rate"]); ?>%</span>
					</div>
				  </div>
				   <div class="clear"></div>
				   <div class="time"><?php echo ($rli["addtime_str"]); ?></div>
				   <div class="praise J_praise" rid="<?php echo ($rli["id"]); ?>" qid="<?php echo ($q["id"]); ?>" answeruid="<?php echo ($rli["uid"]); ?>"><?php echo ($rli["praise"]); ?></div>
				   
		           <!--回复内容 -->
		           <div class="rtxt">
				   <?php echo ($rli["content"]); ?>
				   </div>
				    <!-- 追问和追答 -->
				   <?php if(is_array($rli["asked"])): $i = 0; $__LIST__ = $rli["asked"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ali): $mod = ($i % 2 );++$i;?><div class="askedlist type<?php echo ($ali["type"]); ?>">
						 <div class="tn">
						 <?php if($ali["type"] == '1'): ?>追答：
							<?php else: ?>
							 追问：<?php endif; ?>
						 </div>
						 <div class="infobox">
							 <div class="info"><?php echo ($ali["content"]); ?></div>
							 <div class="clear"></div>
							 <div class="arrows"></div>
						 </div>
						 <div class="clear"></div>
					
				   </div><?php endforeach; endif; else: echo "" ;endif; ?>
				   <!-- 追问追答结束-->
				   
				   <?php if(($q["uid"] == $user['uid']) AND ($q['issolve']=='0')): ?><!--假如是自己发布的 -->
				    <div class="btns">
			   		  
					 <input name="" type="button"  class="adoption J_adoption" rid="<?php echo ($rli["id"]); ?>" qid="<?php echo ($q["id"]); ?>" value="采纳为满意答案">
					 <div class="asked J_show_asked">追问</div>
					 <div class="clear"></div>
	    			</div>

				<div class="inputbox">
					<div class="arrow"></div>
			   <textarea name="content" cols=""   type="2" rid="<?php echo ($rli["id"]); ?>" rows="" class="input J_asked_input"  placeholder="这里填写内容" ></textarea>
					<div class="askedbtn">
					 <input type="button" class="btn_green btn_inline btn_border J_reply_asked_btn"  value="提交追问">
					</div>
	   			 </div><?php endif; ?>
		
		
	  </div><?php endforeach; endif; else: echo "" ;endif; ?>
		<!-- -->

	</div><?php endif; ?>
	
	<!--等待回答 -->
	<div class="box3">
	  	<div class="title">等你回答</div>
		
		<!-- -->
<?php $tag_question_class = new \Common\Taglib\question();$question = $tag_question_class->run(array('listname'=>'question','category1'=>$q['category1'],'type'=>'1','num'=>'5','cache'=>'0',)); ?> 
<?php if(is_array($question["list"])): $i = 0; $__LIST__ = $question["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="qll">
		  	<div class="qtd1"></div>
			<div class="qtd2">
				 <img src="<?php echo ($li["avatar"]); ?>" />
			</div>
		  <div class="qtd3 link_gray3">
				  <h4>
					<?php if(!empty($li["reward"])): ?><span class="reward"><?php echo ($li["reward"]); ?></span><?php endif; ?>
					<a href="<?php echo ($li["url"]); ?>"><?php echo ($li["title"]); ?></a>
				  </h4>
					<div class="author link_gray3">
							 <?php if($li["answeruid"] > 0 ): ?><a href="<?php echo ($li["aurl"]); ?>"  target="_blank"><?php echo ($li["aname"]); ?></a> <span> 回复于 <?php echo ($li["answertimestr"]); ?></span> 
							 <?php else: ?>
							  <a href="<?php echo ($li["uurl"]); ?>" target="_blank"><?php echo ($li["uname"]); ?></a><span> 发布于 <?php echo ($li["addtimestr"]); ?></span><?php endif; ?>
					</div>
					 <?php if(!empty($li["tags"])): ?><span class="tag">
				 
					<?php if(is_array($li["tags"])): $i = 0; $__LIST__ = $li["tags"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tagsli): $mod = ($i % 2 );++$i;?><a   href="<?php echo ($tagsli["tagurl"]); ?>" target="_blank"><?php echo ($tagsli["tag"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?> 
					 
				</span><?php endif; ?> 
					<div class="rcount"><?php echo ($li["answercount"]); ?> 回答</div>
			</div>
			<div class="clear"></div>
		</div>
		<!-- --><?php endforeach; endif; else: echo "" ;endif; ?>

<?php if(empty($question["list"])): ?><div class="infoempty"> 暂时木有内容呀～～</div><?php endif; ?>
		
</div>
	
	
</div>
  <div class="rar">
		<?php if((C('UU_SMS_OPEN') == '1') OR ($_SESSION['uu']['uid']!= '')): ?><a class="btn" href="<?php echo RU('question/add');?>">我要提问</a>
        <a class="btn share" href="<?php echo RU('article/add');?>">分享经验</a>
	<?php else: ?>
		<a class="btn J_user_login" href="javascript:void(0);">我要提问</a>
        <a class="btn share J_user_login" href="javascript:void(0);">分享经验</a><?php endif; ?>
		
		<div class="tagbox">
          <div class="tit">热门标签</div>
          <div class="more link_gray6"><a href="<?php echo RU('tag/lists');?>">更多></a></div>
                      <div class="clear"></div>
          			 <?php $tag_tag_class = new \Common\Taglib\tag();$tags = $tag_tag_class->run(array('listname'=>'tags','page'=>'0','sort'=>'hot','num'=>'40','cache'=>'0',)); ?>
					 <?php if(is_array($tags["list"])): $i = 0; $__LIST__ = $tags["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tli): $mod = ($i % 2 );++$i;?><a class="tag" href="<?php echo ($tli["url"]); ?>"><?php echo ($tli["tag"]); ?><span>(<?php echo ($tli["count_question"]); ?>)</span></a><?php endforeach; endif; else: echo "" ;endif; ?>
                      <div class="clear"></div>
        </div>
        
   <!-- <div class="ranking">
                     <div class="tit">排行榜</div>
                      <div class="more link_gray6"><a href="#" class="select">今天</a><span>·</span><a href="#">本周</a><span>·</span><a href="#">更多</a></div>
      					<div class="clear"></div>
                      
     					<div class="list">
                          <div class="td1">1.</div>
                          <div class="td2"><img src="http://askimg.39.net/doctor/20110829/220867.jpg" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">1.</div>
                          <div class="td2"><img src="http://askimg.39.net/doctor/20110829/220867.jpg" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">1.</div>
                          <div class="td2"><img src="/<?php echo C('UU_TPL_DIR');?>/public/images/06.png" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">2.</div>
                          <div class="td2"><img src="http://askimg.39.net/doctor/20110829/220867.jpg" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">4.</div>
                          <div class="td2"><img src="/<?php echo C('UU_TPL_DIR');?>/public/images/06.png" /></div>
                          <div class="td3 link_orange"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">11.</div>
                          <div class="td2"><img src="/<?php echo C('UU_TPL_DIR');?>/public/images/06.png" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">10.</div>
                          <div class="td2"><img src="/<?php echo C('UU_TPL_DIR');?>/public/images/06.png" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
    </div> -->
		
	 
  </div>
  <div class="clear"></div>
  
</div>

<script type="text/javascript">
	var uploadUrl = "<?php echo RU('Upload/attach');?>";
</script>
<div class="footernav link_gray6">
<a href="<?php echo C('UU_SITE_DOMAIN');?>/">首页</a>
<?php $tag_intro_class = new \Common\Taglib\intro();$li = $tag_intro_class->run(array('listname'=>'li','cache'=>'0',)); ?>
<?php if(is_array($li["list"])): $i = 0; $__LIST__ = $li["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><span>|</span><a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
</div>  
<div class="footertxt link_gray3">
<a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo C('UU_ICP');?></a>
Powered By <a href="http://www.zgxmall.com" target="_blank"><span class="by">中港星企业服务论坛</span><span class="version"><?php echo C('UU_VERSION');?></span></a>
<?php echo C('UU_COPYRIGHT');?>
<br />
联系地址：深圳市罗湖区人民南路国贸大厦17、19楼&nbsp;&nbsp;&nbsp;&nbsp;联系电话：0755-82211688
 
<div class="statistics"><?php echo C('UU_STATISTICS');?></div>
</div>

<script type="text/javascript">
$(document).ready(function()
{
//回答表单增加高度
$('#J_reply_input').live('click',function() {
	 	h=$(this).height();
		if (h==150)
		{
		$(this).animate({ height: "55px"}, 500 );	
		}
		else
		{
		$(this).animate({ height: "150px"}, 500 );
		}
	});
//追问（补充）表单增加高度
$('.J_asked_input,.J_supp_input').live('click',function() {
	 	h=$(this).height();
		if (h==100)
		{
		$(this).animate({ height: "22px"}, 500 );	
		}
		else
		{
		$(this).animate({ height: "100px"}, 500 );
		}
});
//显示追问表单
$(".J_show_asked").click( function () {
 	$(this).parent().next().toggle();
});
//提交回复
$("#J_save_reply").click( function () {
	reply=$('#J_reply_input').val();
	if (reply.length<=3){
		disapperTooltip("remind","请详细输入回答内容，3个字符以上！");
	}
	else
	{
		$('form[name=replysave]').submit();
	}
 	
});

//提交追问和追答
$(".J_reply_asked_btn").click( function () {
	$(this).addClass('btn_disabled').attr("disabled","disabled");
	var askedURL="<?php echo RU('question/ajax_reply_asked');?>";
	reply_textarea=$(this).parent().prev('textarea');
	type=reply_textarea.attr('type');
	rid=reply_textarea.attr('rid');
	content=reply_textarea.val();
	if (content.length==0)
	{
		disapperTooltip("remind","请填写内容！");
		$(this).removeClass('btn_disabled').removeAttr("disabled");
		return false;
	}
	$.getJSON(askedURL, {type:type,rid:rid,content:content}, function(json){
					
					if (json.status==0){
						disapperTooltip("remind", json.content);
						$(this).removeClass('btn_disabled').removeAttr("disabled");
					}else if (json.status==1){
						disapperTooltip("success",json.content);
						setTimeout(function () { 
							window.location.reload();
						}, 2000);
					}else{
						disapperTooltip("remind","未知错误");
						$(this).removeClass('btn_disabled').removeAttr("disabled");
					}
	});

});
//补充提问提交
$(".J_supp_btn").click( function () {
//$(this).val('提交问题').removeAttr("disabled");
//$(this).removeClass('btn_disabled');
	$(this).attr("disabled","disabled").addClass('btn_disabled');
	var suppURL="<?php echo RU('question/ajax_question_supp');?>";
	supp_textarea=$(this).parent().prev('textarea');
	qid=supp_textarea.attr('qid');
	content=supp_textarea.val();
	if (content.length==0)
	{
		disapperTooltip("remind","请填写内容！");
		$(this).removeAttr("disabled").removeClass('btn_disabled');
		return false;
	}
	
	$.getJSON(suppURL, {qid:qid,content:content}, function(json){
					
					if (json.status==0){
						disapperTooltip("remind", json.content);
						//
						$(this).removeAttr("disabled").removeClass('btn_disabled');
						//
					}else if (json.status==1){
						disapperTooltip("success",json.content);
						setTimeout(function () { 
							window.location.reload();
						}, 1500);
					}else{
						disapperTooltip("remind","未知错误");
						//
						$(this).removeAttr("disabled").removeClass('btn_disabled');
						//
					}
	});

});
//点赞
$(".J_praise").click( function () {
	var praURL="<?php echo RU('question/ajax_inc_praise');?>";
	praise=$(this);
	rid=praise.attr('rid');
	qid=praise.attr('qid');
	answeruid=praise.attr('answeruid');
	$.getJSON(praURL, {rid:rid,answeruid:answeruid,qid:qid}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
						praise.html(json.content);
						disapperTooltip("success",'感谢你点赞！');
					}else{
						disapperTooltip("remind","未知错误");
					}
	});

});
//展开补充问题按钮
$(".J_supp_show").click( function () {
	$('.suppinputbox').toggle();
	$('.suppgold').hide();
});
//展开追加悬赏按钮
$(".J_supp_gold_show").click( function () {
	$('.suppgold').toggle();
	$('.suppinputbox').hide();
});
//追加悬赏操作
$("#J_supp_gold").click( function () {
	var apraURL="<?php echo RU('question/ajax_supp_gold');?>";
	var usergold=Number("<?php echo ($user["gold"]); ?>");
	var qid=Number("<?php echo ($q["id"]); ?>");
	var gold=$('input[name=suppgold]:checked').val();
	if (gold>usergold)
	{
	disapperTooltip("remind","你的<?php echo C('UU_GOLD_BYNAME');?>不够用了，平时多攒点呀～");
	return false;
	}
	$(this).attr("disabled","disabled").addClass('btn_disabled');
	$.getJSON(apraURL, {qid:qid,gold:gold}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
						$(this).removeAttr("disabled").removeClass('btn_disabled');
					}else if (json.status==1){
						disapperTooltip("success",json.content);
						setTimeout(function () { 
							window.location.reload();
						}, 1800);
					}else{
						disapperTooltip("remind","未知错误");
						$(this).removeAttr("disabled").removeClass('btn_disabled');
					}
	});

});
//采纳答案
$(".J_adoption").click( function () {
	var ajaxURL="<?php echo RU('question/ajax_adoption_reply');?>";
	var rid=$(this).attr('rid');
	var qid=$(this).attr('qid');
	$(this).attr("disabled","disabled").addClass('disabled');
	$.getJSON(ajaxURL, {rid:rid,qid:qid}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
						$(this).removeAttr("disabled").removeClass('disabled');
					}else if (json.status==1){
						var LoginDialog = $(this).dialog({
								title: false,
								content:json.content,
								footer: false,
								header: false,
								border: false,
								innerPadding: false,
								backdrop: true,
								bgTransparent: true
						});
						
					}else{
						disapperTooltip("remind","未知错误");
						$(this).removeAttr("disabled").removeClass('disabled');
					}
	});

});
//加关注
$('.J_follow').live('click',function() {
		btn=$(this);
		qid=btn.attr('qid');
		 $.getJSON(ajaxURL, { act: "ajax_question_follow",qid:qid}, function(json){
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
					disapperTooltip("success", json.content);
					if (btn.text()=='已关注')	{
					btn.text('关注');
					}else{
					btn.text('已关注');
					}					
					$('.J_follow_count').text(json.count);
					}else{
						disapperTooltip("remind","未知错误");
					}
		});
});
//加收藏
$('.J_favorites').live('click',function() {
		btn=$(this);
		qid=btn.attr('qid');
		type=1;
		 $.getJSON(ajaxURL, { act: "ajax_favorites",qid:qid,type:type}, function(json){
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
					disapperTooltip("success", json.content);
					if (btn.text()=='已收藏')	{
					btn.text('收藏');
					}else{
					btn.text('已收藏');
					}					
					$('.J_favorites_count').text(json.count);
					}else{
						disapperTooltip("remind","未知错误");
					}
		});
});

});
</script>
</body>
</html>